home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / bbsutil / dru_225.zip / RMTSHELL.BAT < prev   
DOS Batch File  |  1989-06-02  |  310b  |  19 lines

  1. echo off
  2. if %1==0 goto LOCAL
  3.  
  4. :NotLocal
  5. CTTY COM%1
  6. REM Reassigns standard I/O to port with value in %1
  7. Goto Shell
  8.  
  9. :Shell
  10. %2 %3 %4 %5 %6 %7 %8 %9
  11. CTTY CON
  12. REM Restores standard I/O to the console (default/original)
  13. Exit
  14. echo on
  15.  
  16. :LOCAL
  17. REM does not reassign standard I/O, uses CON
  18. goto Shell
  19.